package com.ciquan.server.service.impl;

import com.ciquan.server.bean.UserRecommend;
import com.ciquan.server.dao.UserRecommendMapper;
import com.ciquan.server.service.UserRecommendService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by kakalee on 15/3/29.
 */
@Service
public class UserRecommendServiceImpl implements UserRecommendService {

    @Resource
    private UserRecommendMapper userRecommendMapper;

    @Override
    public int insert(UserRecommend userRecommend) {
        return userRecommendMapper.insert(userRecommend);
    }

    @Override
    public List<UserRecommend> selectList() {
        return userRecommendMapper.selectList();
    }

    @Override
    public int update(UserRecommend userRecommend) {
        return userRecommendMapper.update(userRecommend);
    }
}
